import { axiosMock, delayFn } from '@/services/axiosMock'

axiosMock('default', mock => {
  // 获取原始路由信息
  mock.onPost(`/tmsapi/waybill_record/getWaybillNumberRouteInfo`).reply(
    delayFn(600, () => {
      return {
        success: true,
        data: {
          waybillNumberRouteInfoList: [
            {
              trackingNumber: '111200',
              logisticsCompany: 'ups',
              latestStatus: '运输中',
              routeInfoList: [
                {
                  eventTimeIso: '2024 10-10 10:00:00',
                  eventDetail: '一装潢',
                },
                {
                  eventTimeIso: '2024 10-10 10:00:00',
                  eventDetail: '一装潢',
                },
              ],
            },
            {
              trackingNumber: '111201',
              logisticsCompany: 'ups',
              latestStatus: '运输中',
              routeInfoList: [
                {
                  eventTimeIso: '2024 10-10 10:00:00',
                  eventDetail: '一装潢',
                },
              ],
            },
          ],
        },
      }
    }),
  )
})
